package com.atguigu.gulimall.seckill.feign;

import com.atguigu.common.utils.R;
import com.atguigu.gulimall.seckill.feign.fallback.CouponFeignServiceFallBack;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * 优惠远程服务
 *
 * @author xiaoping
 * @create 2020/7/10 15:58
 * @since 1.0.0
 */
@FeignClient(value = "gulimall-coupon",fallback = CouponFeignServiceFallBack.class)
public interface CouponFeignService {

    /**
     * 获取最近三天的活动
     * @return
     */
    @GetMapping("/coupon/seckillsession/lates3DaySession")
    R getLates3DaySession();

}
